// ignore_for_file: use_build_context_synchronously

import 'package:encrypt_and_decrypt_files/widget/extension.dart';
import 'package:encrypt_and_decrypt_files/widget/theme_provider.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';

class AboutPage extends StatefulWidget {
  const AboutPage({
    super.key,
  });

  @override
  State<AboutPage> createState() => _AboutPageState();
}

class _AboutPageState extends State<AboutPage> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    final themeProvider = Provider.of<ThemeProvider>(context);

    return Scaffold(
      appBar: AppBar(
        backgroundColor: themeProvider.mainColor,
        centerTitle: true,
        title: Text('About'.t(context)),
      ),
      body: SingleChildScrollView(
        child: Column(
          children: [
            Container(
              padding: const EdgeInsets.all(30),
              child: Text(
                  'Introducing our cutting-edge application, designed with a comprehensive set of features to enhance user experience and security. Our app offers a seamless registration and login process, ensuring a smooth start for new users. With robust user account management, users can effortlessly control their personal information and settings, including password resets and customization preferences.\n\nFor a premium experience, we provide a membership subscription service that eliminates advertisements, supporting our monetization efforts. Key management is simplified, allowing users to add, select, and remove encryption keys with ease. Our app empowers users to encrypt and decrypt both single and batch files, ensuring their data is always protected. Activity history is meticulously recorded, giving users a clear overview of their encryption and decryption activities.\n\nWe understand the importance of a user-friendly interface, which is why our app is designed with usability in mind, requiring minimal training for effective navigation. Performance is a cornerstone of our app, with swift responsiveness and efficient load handling across various scenarios. Scalability is also a key feature, allowing our app to grow with our user base without compromising performance.\n\nSecurity is at the heart of our app, with robust measures in place to protect against unauthorized access and data breaches, adhering to the highest standards of data protection.'
                      .t(context)),
            )
          ],
        ),
      ),
    );
  }
}
